import request from "../utils/request";

//获取所有管理员
export const getAllAdmin=async (data)=>{
	// console.log("getAllAdmin...............")
	return request.postRequest("manager/admin/list",data)
}
//获取角色列表
export const getRoleList=async (data)=>{

	return request.postRequest("manager/role/list",data)
	
}
//搜索管理员
export const searchAdmin=async (data)=>{

	return request.postRequest("manager/admin/list",data)
	
}
//添加管理员
export const addAdmin=async (data)=>{

	return request.postRequest("manager/admin/insert",data)
	
}
//锁定
export const lockAdmin=async (data)=>{

	return request.getRequest("manager/admin/shopAdmin",data)
	
}
//编辑管理员
export const editAdmin=async (data)=>{

	return request.postRequest("manager/admin/update",data)
	
}
//操作列表
export const opreationList=async (data)=>{

	return request.postRequest("manager/syslog/list",data)
	
}
//操作搜索
export const opreationSearch=async (data)=>{

	return request.postRequest("manager/syslog/list",data)
	
}
//操作详情
export const opreationMore=async (data)=>{

	return request.postRequest("manager/syslog/selectOne",data)
	
}
